<?php
header("Content-type: text/html;charset=utf-8");
$servername = "localhost";
$username = "query";
$password = "1234";
$dbname="test";
// 创建连接
$conn = new mysqli($servername, $username, $password,$dbname);
?>